<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
		<meta http-equiv="Cache-Control" content="no-store"/>
		<meta http-equiv="Pragma" content="no-cache"/>
		<meta http-equiv="Expires" content="0"/>
		<title>test</title>
	
		<link rel="stylesheet" type="text/css" href="itreasury/easyui_themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="itreasury/easyui_themes/icon.css">
		<link rel="stylesheet" type="text/css" href="itreasury/css/suggest.css">
		<script type="text/javascript" src="itreasury/js/jquery-1.8.0.min.js"></script>
		<script type="text/javascript" src="itreasury/js/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="itreasury/js/locale/easyui-lang-zh_CN.js"></script>
		<script type="text/JavaScript" src="itreasury/js/json.min.js"></script>
		<script type="text/JavaScript" src="itreasury/js/jquery.bgiframe.min.js"></script>
		<script type="text/JavaScript" src="itreasury/js/jquery.actual.min.js"></script>
		<script type="text/JavaScript" src="itreasury/js/jquery.dropshadow.js"></script>
		<script type="text/JavaScript" src="itreasury/js/form_text_amount.js"></script>
		<script type="text/JavaScript" src="itreasury/js/form_text_rate.js"></script>
		<script type="text/JavaScript" src="itreasury/js/arabia_to_chinese.js"></script>
		<script type="text/JavaScript" src="itreasury/js/form_magnifier.js"></script>
		<script type="text/JavaScript" src="itreasury/js/Math.uuid.js"></script>
		<script type="text/JavaScript" src="itreasury/js/datacheck_formvalidate.js"></script>
		<script type="text/JavaScript" src="itreasury/js/datacheck_comparedate.js"></script>
		<script type="text/JavaScript" src="itreasury/js/utils.js"></script>
	</head>

	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
		<form name="form1" id="form1" action="" method="post">
			
			
					<table width="100%">
						<tbody>
							<tr>
								<td>
									<table id="datagrid"></table>
								</td>
							</tr>
						</tbody>
					</table>		
			
					<input type="button" id="get" name="get" value="内部获取"/>
		</form>
		<script type="text/javascript">
			$(document).ready(function() {
				//加载分页控件 datagrid
				$('#datagrid').datagrid({
						title:'银行与账户权限分配设置查询列表',
						width: 'auto',
						height: 300,
						nowrap: true,
						autoRowHeight: false,
						striped: true,
						//collapsible:true,
						url:'',
						sortName: 'dutyagencyid',
						sortOrder: 'asc',
						remoteSort: true,
						idField:'dutyagencyid',
						pagination:true,
						rownumbers:true,
						singleSelect:true,
						columns:[[
							{title:'name', field:'name', width:70, sortable:true},
							{title:'age', field:'age', width:250, sortable:true},
							{title:'note', field:'note', width:70, sortable:true}
						]]
				});
				
				$('#get').bind('click',function(){
					var a = $('#datagrid');
					alert(JSON.stringify(a));
					//var a =$(iframeDoc).find('#datagrid');
					a.datagrid('reload');
					//$('#datagrid',iframeDoc).datagrid('reload');
					//alert('结束');			
				});
			});
		</script>
	</body>
</html>